﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace Users.WebSite
{
	public class PageMustLogin : PageBase
	{
		protected User LoginUser { get; set; }

		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);

			if (UserWeb.IsAnonymous())
			{
				UserWeb.RedirectToLoginPage();
			}

			this.LoginUser = UserWeb.GetOnlineUser();
		}
	}
}